<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script>
  <script src="../../cdn/vue/vue.global.min.js"></script>
  <link rel="stylesheet" href="../../cdn/element-plus/index.css" />
  <script src="../../cdn/element-plus/index.full.min.js"></script>
  <script src="http://qtestbucket.qiniudn.com/demo/CryptoJS.js"></script>

  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/avue.js"></script>
</head>

<body>
  <div id="app">
    {{form}}
    <avue-form :option="option" v-model="form"> </avue-form>
  </div>
</body>
<script>
</script>
<script>
  var app = Vue.createApp({
    data() {
      return {
        form: {},
        option: {
          labelWidth: 120,
          column: [
            {
              label: '附件上传',
              prop: 'imgUrl',
              type: 'upload',
              listType: 'picture-img',
              fileType: 'img',
              onRemove: () => {
                alert(1)
              },
              canvasOption: {
                text: 'avue',
                ratio: 0.1
              },
              oss: 'qiniu',
              loadText: '附件上传中，请稍等',
              span: 24,
              tip: '只能上传jpg/png文件，且不超过500kb',
              action: 'http://avueupload.91eic.com/upload/list'
            }
          ]
        }
      }
    },
    methods: {
    }
  })
  app.use(ElementPlus)
  app.use(AVUE, {
    qiniu: {
      AK: 'BLEIUCkTJhUKfb7Yl4wa2X-5B6uecKNxoCd93IlG',
      SK: '1_Falie5zL2BH7IBuZSZi1EJqm_5_G1-Gdjz-DS4',
      scope: 'test',
      url: 'https://cdn.avuejs.com/',
    }
  })
  app.mount('#app')
</script>

</html>